<?
session_start();

include_once('includes/Savant/Savant3.php');
include_once('includes/class.tokkotai.php');
$_tok = new tokkotai;
if(!$_tok->is_sess())
{
	header('location: /');
	exit;
}

$_tpl = new Savant3(array('template_path'=>dirname(__FILE__) . '/templates'));
$_tpl->results = $_tok->do_search();
$_tpl->bc = array
(
	array('Results')
);
$_tpl->charts = $_tok->return_highcharts();
$_tpl->display('start.tpl.php');
$_tpl->display('results.tpl.php');
$_tpl->display('end.tpl.php');
?>
